package com.extweb4j.web.plugin;

import com.extweb4j.core.model.*;
import com.jfinal.kit.PropKit;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.jfinal.plugin.activerecord.IDataSourceProvider;

public class TenderPlatRecordPlugin extends ActiveRecordPlugin{

	public TenderPlatRecordPlugin(IDataSourceProvider dataSource) {
		super("plat",dataSource);
		//this.setTransactionLevel(2);
		this.initMapping();
	}

	public void initMapping(){

		this.setShowSql(PropKit.getBoolean("devMode",false));

		this.addMapping("Department", "deptId",ExtDepartment.class);
	}
}
